package Utils;

import android.graphics.Color;
import android.util.Log;

/**
 * Created by wangic on 2017/2/9.
 */
public class RGB2Int {
    public static int RGB2Int(String color) {
        String[] colors = color.split(",");
        int red = Integer.parseInt(colors[0]);
        int green = Integer.parseInt(colors[1]);
        int blue = Integer.parseInt(colors[2]);
        int finalcolor = Color.rgb(red, green, blue);
        return finalcolor;
    }
}
